package com.cy.service.impl;

import com.cy.common.annotation.RequiredLog;
import com.cy.dao.SysUserDao;
import com.cy.pojo.SysUser;
import com.cy.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysUserServiceImpl implements SysUserService {
    @Autowired
    private SysUserDao sysUserDao;

    @Override
    public SysUser selectUserByUsername(String username) {
        return sysUserDao.selectUserByUsername(username);
    }

//    @RequiredLog(operation = "查询用户列表信息")
    @Override
    public List<SysUser> selectUsers(String username) {
        return sysUserDao.selectUsers(username);
    }
}
